package com.culture.bootdemo.model.dto;

import lombok.Data;

import java.util.List;


/**
 * @Author: wenjl
 * @Date: 2022/10/17 18:04
 * @Description: 菜单
 */
@Data
public class MenuDTO {

    private Integer id;
    private String name;
    private Integer pid;
    private Integer sort;
    private Integer type;
    private Integer hasRelated;

    private List<MenuDTO> children;


    public MenuDTO(Integer id, String name, Integer pid) {
        this.id = id;
        this.name = name;
        this.pid = pid;
    }
}
